export const tableComponentConfig = {
  removeButton: () =>
    import('@/views/purchase-plan/components/tableComp/removeButton.vue'),
};

export const tableRenderConfig = {
  index: { title: '序号', dataIndex: 'index', slotName: 'index', width: 150 },
  secretLevel: {
    title: '密级',
    dataIndex: 'secretLevel',
    componentName: 'secretLevel',
    slotName: 'secretLevel',
    width: 150,
  },
  changeNo: { title: '更改单编号', dataIndex: 'changeNo', width: 250 },
  planListNo: { title: '采购计划编号', dataIndex: 'planListNo', width: 250 },
  missionNo: { title: '任务编号', dataIndex: 'missionNo', width: 150 },
  mdsItemCode: { title: '物料编码', dataIndex: 'mdsItemCode', width: 150 },
  mdsItemName: { title: '物料名称', dataIndex: 'mdsItemName', width: 150 },
  supplierName: { title: '供应商', dataIndex: 'supplierName', width: 150 },
  millTypeCode: { title: '机型', dataIndex: 'millTypeCode', width: 150 },
  batchNo: { title: '批次', dataIndex: 'batchNo', width: 150 },
  batchFlowNo: { title: '架次', dataIndex: 'batchFlowNo', width: 150 },
  brandNo: { title: '牌号', dataIndex: 'brandNo', width: 150 },
  productSuperTypeNo: {
    title: '父型号',
    dataIndex: 'productSuperTypeNo',
    width: 150,
  },
  specification: { title: '规格', dataIndex: 'specification', width: 150 },
  technicalCondition: {
    title: '技术条件',
    dataIndex: 'technicalCondition',
    width: 150,
  },
  measureUnit: { title: '计量单位', dataIndex: 'measureUnit', width: 150 },
  planQty: { title: '订货数量', dataIndex: 'planQty', width: 150 },
  chngPlanQty: {
    title: '变更后订货数量',
    dataIndex: 'chngPlanQty',
    width: 150,
  },
  planArrivalDate: {
    title: '计划到货日期',
    dataIndex: 'planArrivalDate',
    width: 250,
  },
  chngPlanArrivalDate: {
    title: '变更后计划到货日期',
    dataIndex: 'chngPlanArrivalDate',
    width: 250,
  },

  chngCauseDesc: { title: '变更原因', dataIndex: 'chngCauseDesc', width: 250 },
  editUserName: { title: '编制人', dataIndex: 'editUserName', width: 150 },
  editDate: { title: '编制日期', dataIndex: 'editDate', width: 350 },
  changeStatusDesc: {
    title: '单据状态',
    dataIndex: 'changeStatusName',
    width: 150,
  },
  refuseCause: { title: '拒绝原因', dataIndex: 'refuseCause', width: 150 },
  sureReturnCause: {
    title: '确认退回原因',
    dataIndex: 'sureReturnCause',
    width: 150,
  },
  exeReturnCause: {
    title: '贯彻撤销原因',
    dataIndex: 'exeReturnCause',
    width: 150,
  },

  purchaseStateDesc: {
    title: '是否采购',
    dataIndex: 'purchaseStateName',
    width: 150,
  },
  manufactureTypeDesc: {
    title: '制造类型',
    dataIndex: 'manufactureTypeName',
    width: 150,
  },
  transcodeMachineNo: {
    title: '转码机型',
    dataIndex: 'transcodeMachineNo',
    width: 150,
  },
  transcodePicNo: {
    title: '转码图号',
    dataIndex: 'transcodePicNo',
    width: 150,
  },

  // remove: {
  //   title: '选项',
  //   dataIndex: 'remove',
  //   componentName: 'removeButton',
  // },
  operate: {
    title: '操作',
    dataIndex: 'operate',
    slotName: 'operate',
    fixed: 'right',
    width: 250,
  },
};
